package com.nami.store.biz.sendboxmsgs.application;


import com.nami.store.biz.sendboxmsgs.service.SendBoxMsgDomainService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.dromara.common.core.utils.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Date;

@Slf4j
@Service
@RequiredArgsConstructor
public class SendBoxMsgAppServiceImpl implements SendBoxMsgAppService {

    private final SendBoxMsgDomainService sendBoxMsgDomainService;

    @Override
    public boolean delByTime(String appKey, Date time) {
        if (StringUtils.isBlank(appKey)) {
            return false;
        }
        return sendBoxMsgDomainService.delByTime(appKey, time);
    }

}
